public class ObjectClone implements Cloneable {
	private double pi = 3.14d;
	public static void main(String[] args) {
		ObjectClone a = new ObjectClone();
		ObjectClone b = a.clone();
		a.pi = 3.1415926957d;
		System.out.println(a.pi);
		System.out.println(b.pi);
	}
	
	@Override
    protected ObjectClone clone() {
        try {
			return (ObjectClone)super.clone();
		} catch(CloneNotSupportedException e) {
			throw new RuntimeException(e);
		}
    }
	
	
}